// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.PatrolManage;
import com.fowo.api.model.patrol.manage.PatrolManageItemVo;
import com.fowo.api.model.patrol.manage.PatrolManageSearchParamPo;
import com.fowo.api.model.patrol.manage.PatrolManageVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PatrolManageMapper extends BaseMapper<PatrolManage> {
  Page<PatrolManageItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") PatrolManageSearchParamPo search
  );
  List<OptionItem<PatrolManageItemVo>> searchOptions(
    @Param("search") PatrolManageSearchParamPo search
  );
  List<PatrolManageItemVo> search(
    @Param("search") PatrolManageSearchParamPo search
  );
  Date searchLastUpdateTime(@Param("search") PatrolManageSearchParamPo search);
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") PatrolManageSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") PatrolManageSearchParamPo search);
  Long getIdBySupplierId(@Param("supplierId") Long supplierId);

  List<Long> getIdsBySupplierId(@Param("list") List<Long> list);

  Long getSupplierIdById(@Param("id") Long id);

  List<Map<String, Object>> getSupplierIdByIds(@Param("ids") List<Long> ids);
  PatrolManageVo selectVoById(@Param("id") Long id);
  /**
   * 全部
   */
  List<PatrolManageItemVo> allData(
    @Param("search") PatrolManageSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> allDataIds(@Param("search") PatrolManageSearchParamPo search);

  /**
   * 获取全部的总数
   */
  Long allDataCount(@Param("search") PatrolManageSearchParamPo search);

  /**
   * 全部分页
   */
  Page<PatrolManageItemVo> allDataPage(
    @Param("page") Page page,
    @Param("search") PatrolManageSearchParamPo search
  );
  Date allDataLastUpdateTime(@Param("search") PatrolManageSearchParamPo search);
  /**
   * 待提交
   */
  List<PatrolManageItemVo> tobesubmitted(
    @Param("search") PatrolManageSearchParamPo search
  );

  /**
   * 获取待提交编号列表
   */
  List<Long> tobesubmittedIds(
    @Param("search") PatrolManageSearchParamPo search
  );

  /**
   * 获取待提交的总数
   */
  Long tobesubmittedCount(@Param("search") PatrolManageSearchParamPo search);

  /**
   * 待提交分页
   */
  Page<PatrolManageItemVo> tobesubmittedPage(
    @Param("page") Page page,
    @Param("search") PatrolManageSearchParamPo search
  );
  Date tobesubmittedLastUpdateTime(
    @Param("search") PatrolManageSearchParamPo search
  );
  /**
   * 已完成
   */
  List<PatrolManageItemVo> completed(
    @Param("search") PatrolManageSearchParamPo search
  );

  /**
   * 获取已完成编号列表
   */
  List<Long> completedIds(@Param("search") PatrolManageSearchParamPo search);

  /**
   * 获取已完成的总数
   */
  Long completedCount(@Param("search") PatrolManageSearchParamPo search);

  /**
   * 已完成分页
   */
  Page<PatrolManageItemVo> completedPage(
    @Param("page") Page page,
    @Param("search") PatrolManageSearchParamPo search
  );
  Date completedLastUpdateTime(
    @Param("search") PatrolManageSearchParamPo search
  );
}
